package dao;

import common.Application;
import database.DatabaseObject;
import templates.PropertyTemplate;

public class Property {
    private short uid;
    private DatabaseObject value;

    public Property(short uid, DatabaseObject value) {
        this.uid = uid;
        this.value = value;
    }

    public DatabaseObject getValue() {
        return value;
    }

    public PropertyTemplate getTemplate() {
        return Application.getInstance().getTemplate((short) (uid & 0xFF00)).getPropertyTemplate(uid);
    }

    public short getUid() {
        return uid;
    }
}
